const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: process.env.NODE_ENV == 'development' ? '/' : `/portal`,
  productionSourceMap: false,
  transpileDependencies: true,
  lintOnSave: process.env.NODE_ENV !== 'production',
  chainWebpack: (config) => {
    config.plugin('html').tap((args) => {
      // args[0].faviconPath = 'favicon.ico';
      args[0].title = 'qiankun主应用'
      return args
    })
  },
  devServer: {
    client: {
      progress: true,
      overlay: false
    }
  }
})
